Ext.define('BookmarkIt.view.EditFolderDialog', {
    extend: 'Ext.window.Window',
    alias: 'widget.folderedit',

    title: 'Folder editor',
    layout: 'fit',
    autoShow: true,
    width:210,
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                items: [
                    {
                        xtype: 'textfield',
                        name : 'title',
                        fieldLabel: 'Title',
                        width:'100%',
                        padding:5,
                        labelWidth:15
                    }
                ]
            }
        ];

        this.buttons = [
            {
                text: 'Save',
                action: 'save',
                handler: function(button){
                	window.controller.updateBookmark(button);
                }
            },
            {
                text: 'Cancel',
                scope: this,
                handler: this.close
            }
        ];

        this.callParent(arguments);
    }
});